﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BBMS.BLL.DataContract
{
    public class BankData
    {
        public string Code { set; get; }
        public string Beneficiary { set; get; }
        public string BeneficiaryShort { set; get; }
        public string AccountNo { set; get; }
        public string AccountType { set; get; }
        public string Dep { set; get; }

        public BankData(){}

        public BankData(string code, string name, string shortname, string accountno, string accounttype, string dep)
        {
            Code = code;
            Beneficiary = name;
            BeneficiaryShort = shortname;
            AccountNo = accountno;
            AccountType = accounttype;
            Dep = dep;
        }

        public override bool Equals(object obj)
        {
            return ((BankData)obj).Code.Equals(this.Code);
        }

    }
}
